export const poolType='5'
export const accType='4'
export const successStatus='success'
export const errorStatus='error'
export const NO_PROFILE_ERR='请先维护个人信息'

export function getEChartsData(data){
  let map=[]
  let keys=[]
  keys=Object.keys(data)
  for (let i = 0; i < keys.length; i++) {
    map[i]=data[keys[i]]
    // const {postName:name,postCount:value}=map[i]
    // map[i]={name,value}
  }
  keys = []
  map.forEach((k, v) => {
    keys.push(k)
  })
  let res=new Map()
  res.set('map',map)
  res.set('keys',keys)
  return res
}
